package 从尾到头打印链表;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ListNode node1 = new ListNode(1);
        ListNode node2 = new ListNode(2);
        ListNode node3 = new ListNode(3);
        node1.next = node2;
        node2.next = node3;
        //System.out.println(arrayList);
        ArrayList<Integer> ret = Solution.printListFromTailToHead(node1);
        System.out.println(ret);
    }
}
